class GameMedalRankModel {
  String? org;
  String? nationalFlag;
  int? rank;
  int? gold;
  int? silver;
  int? bronze;
  int? total;
  String? name;
  int? ranktotal;
  String? rankequal;
  String? ranktotalequal;

  GameMedalRankModel(
      {this.org,
      this.nationalFlag,
      this.rank,
      this.gold,
      this.silver,
      this.bronze,
      this.total,
      this.name,
      this.rankequal,
      this.ranktotal,
      this.ranktotalequal});

  factory GameMedalRankModel.fromJson(Map<String, dynamic> json) {
    return GameMedalRankModel(
      org: json['org'] as String?,
      nationalFlag: json['national_flag'] as String?,
      rank: json['rank'] as int?,
      gold: json['gold'] as int?,
      silver: json['silver'] as int?,
      bronze: json['bronze'] as int?,
      total: json['total'] as int?,
      name: json['name'] as String?,
      rankequal: json['rank_equal'] as String?,
      ranktotal: json['rank_total'] as int?,
      ranktotalequal: json['rank_total_equal'] as String?,
    );
  }

  Map<String, dynamic> toJson() => {
        'org': org,
        'national_flag': nationalFlag,
        'rank': rank,
        'gold': gold,
        'silver': silver,
        'bronze': bronze,
        'total': total,
        'name': name,
        'rank_total_equal': ranktotalequal,
        'rank_total': ranktotal,
        'rank_equal': rankequal
      };
}
